

package LogicaNegocio;

import java.io.Serializable;
import java.util.List;
import javax.persistence.*;

@Entity
public class Cliente extends Persona implements Serializable {
   
    @Basic
    private String cuit;
    @OneToOne
    private Calle unaCalle;
    @OneToMany
    private List<Vehiculo> Vehiculos;
    @OneToMany
    private List<OrdenDeReparacion> OrdenesDeReparacion;

      public String getCuit() {
            return cuit;
      }

      public void setCuit(String cuit) {
            this.cuit = cuit;
      }

      public Calle getUnaCalle() {
            return unaCalle;
      }

      public void setUnaCalle(Calle unaCalle) {
            this.unaCalle = unaCalle;
      }

      public List<Vehiculo> getVehiculos() {
            return Vehiculos;
      }

      public void setVehiculos(List<Vehiculo> Vehiculos) {
            this.Vehiculos = Vehiculos;
      }

      public List<OrdenDeReparacion> getOrdenesDeReparacion() {
            return OrdenesDeReparacion;
      }

      public void setOrdenesDeReparacion(List<OrdenDeReparacion> OrdenesDeReparacion) {
            this.OrdenesDeReparacion = OrdenesDeReparacion;
      }

      public Cliente() {
      }
    

      public void agregarVehicul(Vehiculo unVehiculo){
            this.Vehiculos.add(unVehiculo);
      }
      public void agregarOrdenDeReparacion(OrdenDeReparacion unaOrdenDeReparacion){
            this.OrdenesDeReparacion.add(unaOrdenDeReparacion);
      }

}